package com.alipay.lifeaccount.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 生活号表
 * </p>
 *
 * @author 进击的Coder
 * @since 2019-01-12
 */
@TableName("ali_life_account")
public class LifeAccount extends Model<LifeAccount> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id自增
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 生活号类型id
     */
	@TableField("life_type_id")
	private Integer lifeTypeId;
    /**
     * 生活号名
     */
	@TableField("life_name")
	private String lifeName;
    /**
     * app id
     */
	private String appid;
    /**
     * 总粉丝数
     */
	private Long totalFans;
    /**
     * 商户私钥
     */
	@TableField("merchant_private_key")
	private String merchantPrivateKey;
    /**
     * 商户公钥
     */
	@TableField("alipay_public_key")
	private String alipayPublicKey;
    /**
     * 生活号本身的状态, 0 代表特殊不可发布, 1 代表普通正常, 2代表特殊可发布, 3代表特殊正常
     */
	private Integer status;
    /**
     * 图标
     */
	private String icon;
    /**
     * 上下架的状态, 0代表下架, 1代表上架
     */
	@TableField("carriage_status")
	private Integer carriageStatus;


	public Integer getId() {
		return id;
	}

	public LifeAccount setId(Integer id) {
		this.id = id;
		return this;
	}

	public Integer getLifeTypeId() {
		return lifeTypeId;
	}

	public LifeAccount setLifeTypeId(Integer lifeTypeId) {
		this.lifeTypeId = lifeTypeId;
		return this;
	}

	public String getLifeName() {
		return lifeName;
	}

	public LifeAccount setLifeName(String lifeName) {
		this.lifeName = lifeName;
		return this;
	}

	public String getAppid() {
		return appid;
	}

	public LifeAccount setAppid(String appid) {
		this.appid = appid;
		return this;
	}

	public Long getTotalFans() {
		return totalFans;
	}

	public LifeAccount setTotalFans(Long totalFans) {
		this.totalFans = totalFans;
		return this;
	}

	public String getMerchantPrivateKey() {
		return merchantPrivateKey;
	}

	public LifeAccount setMerchantPrivateKey(String merchantPrivateKey) {
		this.merchantPrivateKey = merchantPrivateKey;
		return this;
	}

	public String getAlipayPublicKey() {
		return alipayPublicKey;
	}

	public LifeAccount setAlipayPublicKey(String alipayPublicKey) {
		this.alipayPublicKey = alipayPublicKey;
		return this;
	}

	public Integer getStatus() {
		return status;
	}

	public LifeAccount setStatus(Integer status) {
		this.status = status;
		return this;
	}

	public String getIcon() {
		return icon;
	}

	public LifeAccount setIcon(String icon) {
		this.icon = icon;
		return this;
	}

	public Integer getCarriageStatus() {
		return carriageStatus;
	}

	public LifeAccount setCarriageStatus(Integer carriageStatus) {
		this.carriageStatus = carriageStatus;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
